package com.cd.javacxy.module.web.dao;

import com.cd.javacxy.common.model.entity.CxyAsk;
import com.cd.javacxy.common.model.query.AskQuery;
import com.cd.javacxy.common.model.query.UpdateQuery4ArticleCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CxyAsk的Dao接口
 * 
 * @author yanghy
 *
 */
public interface CxyAskDao {
	 int updateInfoCount(UpdateQuery4ArticleCount updateQuery4ArticleCount);

	List<CxyAsk> selectTopUser(AskQuery askQuery);

	 int updateBestAnswer(CxyAsk cxyAsk);

	 int delete(@Param("askId") Integer askId);

	List<CxyAsk> selectList(AskQuery askQuery);

	int selectCount(AskQuery askQuery);

	int insert(CxyAsk cxyAsk);
}